<template>
  <div class="nav-bar">
    <div class="nav-left">
      <slot name="left"></slot>
    </div>
    <div class="nav-center">
      <slot name="center"></slot>
    </div>
    <div class="nav-right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "NavBar",
};
</script>

<style lang="less" scoped>
.nav-bar {
  display: flex;
  height: 44px;
  // flex布局 >>> 垂直居中
  align-items: center;
  text-align: center;
  // x、y、阴影、颜色
  box-shadow: 0 2px 1px rgba(100, 100, 100, 0.09);
  // justify-content: center;

  .nav-left,
  .nav-right {
    width: 60px;
    height: 100%;
  }

  .nav-center {
    flex: 1;
  }
}
</style>